<script setup>
import WIcon from '../w-icon.vue'
</script>

<template>
  <div class="bwy-select">
    <div class="bwy-select-warp">
      <div class="bwy-select-text">请选择</div>
      <div class="bwy-select-rt">
        <w-icon name="arrow-bottom" size="12"/>
      </div>
    </div>
    <div class="bwy-select-options">
      <div class="options-container animate__animated animate__fadeInDown"></div>
    </div>
  </div>
</template>

<style scoped>
.bwy-select {
  min-width: 100%;
  height: 40px;
  position: relative;
}
.bwy-select-warp {
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  border: 1px solid #dbdbdb;
  border-radius: 2px;
  box-sizing: border-box;
  padding: 12px;
}
.bwy-select-text {
  flex: 1;
  font-size: 13px;
  letter-spacing: 1px;
  color: #AAAAAA;
  text-align: left;
}
.bwy-select-rt {
  margin-left: 12px;
}
.bwy-select-options {
  width: 100%;
  //overflow: hidden;
  position: absolute;
  left: 0;
  top: 56px;
}
.options-container {
  width: 100%;
  min-height: 120px;
  background: #fff;
  border-radius: 2px;
  box-shadow: rgba(0, 0, 0, 0.1) 0 1px 3px 0, rgba(0, 0, 0, 0.06) 0 1px 2px 0;
  position: relative;
  &:before {
    content: '';
    width: 0;
    height: 0;
    border-width: 8px;
    border-style: solid;
    border-color: transparent transparent #fff transparent;
    position: absolute;
    top: -16px;
  }
}
</style>
